/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ntweets;

import java.util.logging.Level;
import java.util.logging.Logger;
import org.json.JSONException;
import org.json.JSONObject;
import utilities.Utility;

/**
 *
 * @author Demola
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        String s = "{\"in_reply_to_screen_name\":null,\"text\":\"Nigeria Independence #lightupnigeria\"," +
                "\"in_reply_to_user_id\":null,\"in_reply_to_status_id\":null,\"geo\":null,\"source\":" +
                "\"<a href" + "\\" + "\"" + "http://code.google.com/p/ntweets/downloads/list" + "\\" +
                "\"" + "rel=" + "\\" + "\"" + "nofollow" + "\\" + "\"" + ">lightup.nigeria</a>\"," +
                "\"user\":{\"friends_count\":4,\"utc_offset\":3600," +
                "\"profile_sidebar_border_color\":\"87bc44\",\"notifications\":false," +
                "\"favourites_count\":0,\"time_zone\":\"West Central Africa\",\"statuses_count\":219," +
                "\"profile_text_color\":\"000000\"," +
                "\"profile_image_url\":\"http://s.twimg.com/a/1256331833/images/default_profile_0_normal.png\"," +
                "\"profile_background_image_url\":\"http://s.twimg.com/a/1256331833/images/themes/" +
                "theme1/bg.png\",\"location\":\"\",\"following\":false,\"verified\":false,\"profile_link_" +
                "color\":\"0000ff\",\"screen_name\":\"tmwale\",\"geo_enabled\":false,\"profile_background_" +
                "tile\":false,\"protected\":false,\"profile_background_color\":\"9ae4e8\"," +
                "\"name\":\"olawale\",\"followers_count\":3,\"url\":null,\"id\":54896366," +
                "\"created_at\":\"Wed Jul 08 13:36:30  0000 2009\",\"profile_sidebar_fill_color\":\"e0ff92\"," +
                "\"description\":\"\"},\"truncated\":false,\"favorited\":false,\"id\":5119238793," +
                "\"created_at\":\"Sat Oct 24 08:47:58  0000 2009\"}";
//        try {
//            JSONObject json = new JSONObject(s);
////            System.out.println(json.getString(""));
//            System.out.println(json.getString("text"));
//            System.out.println(json.getString("in_reply_to_screen_name"));
////            System.out.println(json.getString("user"));
//            System.out.println(json.getString("created_at"));
//            System.out.println(json.getString("source"));
////            System.out.println(json.getString(""));
//            JSONObject user = json.getJSONObject("user");
//            System.out.println(user.getString("profile_image_url"));
//            System.out.println(user.getString("geo_enabled"));
//            System.out.println(user.getString("followers_count"));
//            System.out.println(user.getString("description"));
//        } catch (JSONException ex) {
//            System.err.println(ex.toString());
//        }

        System.out.println(Utility.parseDate("Sun Mar 18 06:42:26 +0000 2007"));
    }

}


